/**
 * Created by xnr on 2020-03-31.
 */
import request from '../utils/fetch'
//新增按钮
export function btnadd (data) {
  return request({
    url: '/sys/btn/add',
    method: 'post',
    requestBody: 'body',
    loading: true,
    data: data
  })
}
//不分页,按钮列表
export function btnlist (data) {
  return request({
    url: '/sys/btn/list',
    method: 'get',
    requestBody: 'null',
    loading: true,
    params: data
  })
}
export function geturl (data) {
  return request({
    url: '/obs/test',
    method: 'post',
    requestBody: 'body',
    loading: true,
    data: data
  })
}
//修改按钮
export function btnupdate (data) {
  return request({
    url: '/sys/btn/update',
    method: 'post',
    requestBody: 'body',
    loading: true,
    data: data
  })
}
//不分页,菜单列表
export function menulist (data) {
  return request({
    url: '/sys/menu/list',
    method: 'get',
    requestBody: 'null',
    loading: true,
    params: data
  })
}
//修改菜单状态
export function btnupdateStatus (data) {
  return request({
    url: '/sys/btn/updateStatus',
    method: 'post',
    requestBody: 'query',
    loading: true,
    data: data
  })
}
//修改菜单状态
export function menuupdateStatus (data) {
  return request({
    url: '/sys/menu/updateStatus',
    method: 'post',
    requestBody: 'query',
    loading: true,
    data: data
  })
}
//不分页,接口列表
export function iflist (data) {
  return request({
    url: '/sys/if/list',
    method: 'get',
    requestBody: 'null',
    loading: true,
    params: data
  })
}
//新增菜单
export function menuadd (data) {
  return request({
    url: '/sys/menu/add',
    method: 'post',
    requestBody: 'body',
    loading: true,
    data: data
  })
}
//修改菜单
export function menuupdate (data) {
  return request({
    url: '/sys/menu/update',
    method: 'post',
    requestBody: 'body',
    loading: true,
    data: data
  })
}
//删除菜单
export function menudelete (data) {
  return request({
    url: '/sys/menu/delete',
    method: 'post',
    requestBody: 'query',
    loading: true,
    data: data
  })
}
export function getValueByKey (data) {
  return request({
    url: '/config/getValueByKey',
    method: 'get',
    requestBody: 'query',
    loading: true,
    params: data
  })
}
export function update (data) {
  return request({
    url: '/config/update',
    method: 'post',
    requestBody: 'body',
    loading: true,
    data: data
  })
}
export function cangkuenable (data) {
  return request({
    url: '/admin/house/updateStatus',
    method: 'post',
    requestBody: 'query',
    loading: true,
    data: data
  })
}
export function yingyunable (data) {
  return request({
    url: '/admin/operate/updateStatus',
    method: 'post',
    requestBody: 'query',
    loading: true,
    data: data
  })
}
export function yingyunupdate (data) {
  return request({
    url: '/admin/operate/editOperate',
    method: 'post',
    requestBody: 'query',
    loading: true,
    data: data
  })
}
export function cangkuupdate (data) {
  return request({
    url: '/admin/house/editHouse',
    method: 'post',
    requestBody: 'query',
    loading: true,
    data: data
  })
}

